package data;

public class Casa extends Propiedad {

	private boolean jardin;

	public Casa(int codigo, int hab, double ancho, double largo, double precio,
			boolean disp, boolean jardin) {
		super(codigo, hab, ancho, largo, precio, disp);
		this.jardin = jardin;
	}

	public boolean isJardin() {
		return jardin;
	}

	public void setJardin(boolean jardin) {
		this.jardin = jardin;
	}

	@Override
	public String toString() {
		return "Casa [area()=" + area() + ", comoCadena()=" + comoCadena()
				+ ", getAncho()=" + getAncho() + ", getCodigo()=" + getCodigo()
				+ ", getHab()=" + getHab() + ", getLargo()=" + getLargo()
				+ ", getPrecio()=" + getPrecio() + ", isDisp()=" + isDisp()
				+ "]";
	}

}
